package com.aabte.spring.validator;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/4/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BizException extends RuntimeException {

  private String code;

  public BizException(String code, String message) {
    super(message);
    this.code = code;
  }
}
